const Main = () => import('@/components/main/Main.vue');
export default [
  {
    path: '/home',
    component: Main,
    children: [
      {
        path: '',
        name: 'home-page',
        component: () => import('@/module/home/Home.vue')
      }
    ]
  },
  {
    path: '/article',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'article-list',
        component: () => import('@/module/articlemanage/articleList.vue')
      },
      {
        path: 'detail',
        name: 'bbsarticledetail',
        component: () => import('@/module/articlemanage/articleDetail.vue')
      },
      {
        path: 'edit',
        name: 'bbsarticleedit',
        component: () => import('@/module/articlemanage/articleEdit.vue')
      }
    ]
  },
  {
    path: '/articletype',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'articletype-list',
        component: () => import('@/module/articletype/articleTypeList.vue')
      },
      {
        path: 'edit',
        name: 'bbsarticletypeedit',
        component: () => import('@/module/articletype/articleTypeEdit.vue')
      }
    ]
  },
  {
    path: '/comment',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'comment-list',
        component: () => import('@/module/commentcenter/commentList.vue')
      },
      {
        path: 'detail',
        name: 'commentdetail',
        component: () => import('@/module/commentcenter/commentDetail.vue')
      }
    ]
  },
  {
    path: '/contact',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'contact-list',
        component: () => import('@/module/contact/contactList.vue')
      }
    ]
  },
  {
    path: '/campaign',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'campaign-list',
        component: () => import('@/module/campaign/campaignList.vue')
      },
      {
        path: 'detail',
        name: 'campaign-detail',
        component: () => import('@/module/campaign/campaignDetail.vue')
      },
      {
        path: 'edit',
        name: 'bbscampaignedit',
        component: () => import('@/module/campaign/campaignEdit.vue')
      }
    ]
  },
  {
    path: '/campaignanalysis',
    component: Main,
    children: [
      {
        path: 'list',
        name: 'campaignanalysis-list',
        component: () =>
          import('@/module/campaignanalysis/campaignanalysisList.vue')
      }
    ]
  }
];
